package com.stone.front.dish.entity;

import java.io.Serializable;
import java.util.Date;

import com.stone.common.util.DateUtil;

/**
 * 商品信息
 * @author Stone P
 *
 */
public class Wares implements Serializable {
	//商品Id
	private int waresId;
	//商品类型(1：菜品 2：套餐)
	private int type;
	//中文名
	private String chName;
	//英文名
	private String enName;
	//单价
	private float price = 0;
	//数量
	private int count = 0;
	//图片
	private String photo;
	//总价
	private float totalPrice = 0;
	//起始时间
	private Date startDate;
	//结束时间
	private Date endDate;
	
	private String remark;

	public int getWaresId() {
		return waresId;
	}

	public void setWaresId(int waresId) {
		this.waresId = waresId;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getChName() {
		return chName;
	}

	public void setChName(String chName) {
		this.chName = chName;
	}

	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public float getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(float totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Date getStartDate() {
		return startDate;
	}

	public String getStartDateStr() {
		if(null != endDate) {
			return DateUtil.dateFormatStr(DateUtil.DATE_FORMAT, startDate);
		} else {
			return "";
		}
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public String getEndDateStr() {
		if(null != endDate) {
			return DateUtil.dateFormatStr(DateUtil.DATE_FORMAT, endDate);
		} else {
			return "";
		}
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}
